The majority of Visual C++ examples are currently provided for Microsoft Visual Studio 2022.
We also provide an example in Microsoft Visual Studio 6.0 (Visual C++ 6.0), to show the feasibility, although we do not regularly update it with newer version of QuickOPC.
Examples in Visual Studio 2022+
-
MFC\EasyOPCDADemo: This is a clone of the Demo application that ships with the QuickOPC-COM product.
- Win32\DumpAddressSpace: Dumps OPC server's address space recursively to the console.
- Win32\RandomReads: Reads random number of random items in a random fashion. This example can serve as kind of a stress test.
- Win32\ReadMultipleItems: Reads multiple items, and displays the results.
- Win32\ReadMultipleItemsXml: Reads multiple items from an OPC XML-DA server, and displays the results.
- Win32\SubscribeMultipleItems: Subscribes to changes of multiple items and display the value of the item with each change.
- Win32\UADocExamples: Contains all C++ examples for OPC-UA that are given in the Reference documentation.
- Win32\WriteMultipleItemValues: Writes values into multiple items at once.
All examples #include (through stdafx.h) a QuickOpc.h file in the SDK\include subdirectory. This file imports all QuickOPC type libraries and declares wrappers for QuickOPC interfaces and classes.
We cannot assure that the examples target one of the Windows SDK versions installed in your development computer. When opening or building the examples, you may receive a warning or error to this effect. The examples do not rely on particulars of any Windows SDK version, and you should be able to easily retarget them to the Windows SDK version of your wish. In Visual Studio, if the retargeting is not offered to you or performed automatically, right-click on the solution node in the Solution Explorer, select the command, and proceed as needed.
Examples in Visual Studio 6.0
You will find some more information to this subject in the Knowledge Base article .
- Win32\ReadMultipleItems: Reads multiple items, and displays the results.
All examples #include (through stdafx.h) a QuickOpc.h file in the SDK\include subdirectory. This file imports all QuickOPC type libraries and declares wrappers for QuickOPC interfaces and classes.
See Also